package com.ccsu.joysport.service;

import com.ccsu.joysport.entity.Info;
import com.ccsu.joysport.repository.InfoRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class InfoService {
    @Autowired
    private InfoRepository infoRepository;

    public Info getInfoById(Long infoID) {
        return infoRepository.findByInfoID(infoID);
    }
}
